home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11693 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: gambier.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Re: What is libc.sa? How to reinstall it?
  5. Date: 15 Mar 1996 10:50:21 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4ice5dINNeti@gambier.ugrad.cs.ubc.ca>
  8. References: <96074.203845U61441@uicvm.uic.edu>
  9. NNTP-Posting-Host: gambier.ugrad.cs.ubc.ca
  10.  
  11. In article <96074.203845U61441@uicvm.uic.edu>,
  12. Sikander Waheed  <U61441@uicvm.uic.edu> wrote:
  13. >I am getting a link time error from the ld. The message is as follows:
  14. >  ld: malformed input file (not rel or archived) /usr/lib/libc.sa
  15. >  (_U10000.o)
  16. >
  17. >What is libc.sa?
  18.  
  19. It contains static _initialized_ variables needed by the shared library
  20. libc.so.<x>.<y>, and any static variables that don't have a zero bit pattern
  21. for a zero value (none in your environment).
  22.  
  23. See, whereas the library code image can easily be aliased in the virtual
  24. address spaces of many processes (hence the term ``shared library''), the
  25. static initialized variables must be separately instantiated in each process.
  26. For example, if a the code of the library has a declaration such as:
  27.  
  28.     static x = 3;
  29.  
  30. It will have to go into the .sa file, since every instance of the library needs
  31. its own copy of this variable. Else one process, in modifying x, would modify
  32. it in every other process.  
  33.  
  34. >How to I reinstall this file? Do I need to reinstall
  35.  
  36. copy it.
  37.  
  38. Please don't ask system-specific questions in a C language newsgroup. There are
  39. Linux and UNIX developer newsgroups for this sort of question.  
  40. -- 
  41.  
  42.